package org.jeecg.modules.product.job.ticket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 电子作业票审批配置
 * @Author: jeecg-boot
 * @Date:   2024-09-01
 * @Version: V1.0
 */
@Data
@TableName("tb_job_ticket_approval_config")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="电子作业票审批配置")
public class TbJobTicketApprovalConfig implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
    /**作业类型*/
    @Excel(name = "作业类型", width = 15, dicCode = "jobType")
    @Dict(dicCode = "jobType")
    @Schema(description = "作业类型")
    private String jobType;
	/**级别*/
	@Excel(name = "级别", width = 15, dicCode = "jobHotLevel")
	@Dict(dicCode = "jobHotLevel")
    @Schema(description = "级别")
    private String level;
	/**签发人员*/
	@Excel(name = "签发人员", width = 15)
    @Schema(description = "签发人员")
    private String issuingOfficerFields;
	/**签发人*/
	@Excel(name = "签发人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "签发人")
    private String approver;
	/**签字备注*/
	@Excel(name = "签字备注", width = 15)
    @Schema(description = "签字备注")
    private String remark;
	/**是否启用*/
	@Excel(name = "是否启用", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @Schema(description = "是否启用")
    private String enableOrNot;
	/**是否必填*/
	@Excel(name = "是否必填", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @Schema(description = "是否必填")
    private String requiredOrNot;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @Schema(description = "排序")
    private Integer sequence;
}
